<?php
App::uses('AppModel', 'Model');
/**
 * Bolsa Model
 *
 * @property GrauDeEnsino $GrauDeEnsino
 * @property Curso $Curso
 * @property Periodo $Periodo
 * @property Lingua $Lingua
 * @property TipoBolsa $TipoBolsa
 * @property Usuario $Usuario
 * @property Inscricao $Inscricao
 */
class Bolsa extends AppModel {

/**
 * Use table
 *
 * @var mixed False or table name
 */
	public $useTable = 'bolsa';


	//The Associations below have been created with all possible keys, those that are not needed can be removed

/**
 * belongsTo associations
 *
 * @var array
 */
	public $belongsTo = array(
		'GrauDeEnsino' => array(
			'className' => 'GrauDeEnsino',
			'foreignKey' => 'grau_de_ensino_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Curso' => array(
			'className' => 'Curso',
			'foreignKey' => 'curso_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Periodo' => array(
			'className' => 'Periodo',
			'foreignKey' => 'periodo_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Lingua' => array(
			'className' => 'Lingua',
			'foreignKey' => 'lingua_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'TipoBolsa' => array(
			'className' => 'TipoBolsa',
			'foreignKey' => 'tipo_bolsa_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Usuario' => array(
			'className' => 'Usuario',
			'foreignKey' => 'usuario_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

/**
 * hasMany associations
 *
 * @var array
 */
	public $hasMany = array(
		'Inscricao' => array(
			'className' => 'Inscricao',
			'foreignKey' => 'bolsa_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);

}
